package com.qyhl.module_home.home.fragment2.main;


import com.qyhl.webtv.commonlib.entity.home.GatherBean;
import com.qyhl.webtv.commonlib.entity.home.HomeBean;
import com.qyhl.webtv.commonlib.entity.live.ShoppingListBean;
import com.qyhl.webtv.commonlib.entity.news.AdvHomeBean;

import java.util.List;

/**
 * Created by Administrator on 2018/3/19.
 */

public interface HomeListContract {

    interface HomeListView {

        void setBanner(boolean b, List<HomeBean.TopNews> topNewsList);

        void setAdvBanner(boolean b, List<AdvHomeBean> list);

        void setGatherNews(List<GatherBean> data, boolean isMore);


        void showError(String msg);

        void showMessage(String msg);

        void showEmpty(String s);

        void setNavigation(boolean isShow, List<HomeBean.SecMenus> list);

        void setTopShop(List<ShoppingListBean> bean);
    }

    interface HomeListViewPresenter {

        void getConfig();

        void getAdvData();

        void onDestroy();

        void getGatherData(int page, int lastNewsId, String type);

        void getTopShop();

    }

    interface HomeListModelPresenter {

        void setError(int i, String s);

        void setConfig(HomeBean data);

        void setAdvBanner(boolean b, List<AdvHomeBean> o);

        void setGatherNews(List<GatherBean> response, boolean b);

        void setTopShop(List<ShoppingListBean> bean);

    }

    interface HomeListModel {

        void getConfig();

        void getAdvData();

        void getGatherData(int page, int lastNewsId, String type);

        void getTopShop();

    }
}
